package com.kgis.fm.platform.model.metadata;

import com.kgis.kp.model.LifecycleModel;

/**
 * 
 * 记录地图范围。包括两种类型：瓦片切图的全图范围以及不同用户对应的地图范围
 * 
 * @author zhxiaomiao
 * @version 1.0
 */

public class MapExtent extends LifecycleModel{
	
	private static final long serialVersionUID = 1L;
	private int id;
	/**
	 * 范围的类型标识
	 */
	private int mapType;
	private String name;
	private float xmax;
	private float xmin;
	private float ymax;
	private float ymin;
	private String srsCode;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getMapType() {
		return mapType;
	}

	public void setMapType(int mapType) {
		this.mapType = mapType;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public float getXmax() {
		return xmax;
	}

	public void setXmax(float xmax) {
		this.xmax = xmax;
	}

	public float getXmin() {
		return xmin;
	}

	public void setXmin(float xmin) {
		this.xmin = xmin;
	}

	public float getYmax() {
		return ymax;
	}

	public void setYmax(float ymax) {
		this.ymax = ymax;
	}

	public float getYmin() {
		return ymin;
	}

	public void setYmin(float ymin) {
		this.ymin = ymin;
	}

	public String getSrsCode() {
		return srsCode;
	}

	public void setSrsCode(String srsCode) {
		this.srsCode = srsCode;
	}

	@Override
	public String toString() {
		return "MapExtent [id=" + id
				+ ", mapType=" + mapType + ", name=" + name + ", xmax=" + xmax
				+ ", xmin=" + xmin + ", ymax=" + ymax + ", ymin=" + ymin + "]";
	}
}
